package cn.smile.bean.entity.msg;

import cn.smile.commons.domain.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 系统公告
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("notice")
public class Notice extends BaseDomain {
    @Serial
    private static final long serialVersionUID = 9106393258046399641L;
    /**
     * 发送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime sendTime;

    /**
     * 接收用户ID
     */
    private String receiveUserId;

    /**
     * 阅读标记(0-否, 1-是)
     */
    private Boolean readFlag;

    /**
     * 阅读时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime readTime;

    /**
     * 公告内容
     */
    private String content;

    /**
     * 处理标记(0-未处理, 1-用户处理, 2-系统处理)
     */
    private Integer handleFlag;
}